package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.common.core.constant.enums.AllAuditActionStatusEnum;
import com.engine4cloud.tdf.common.core.constant.enums.AuditBusinessTypeEnum;
import com.engine4cloud.tdf.supervision.dto.SpAuditDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "审批活动事项审核-请求对象")
public class SpAuditActionResultCreateDTO extends SpAuditResultCreateDTO {
    /**
     * 租户id
     */
    @Schema(description = "租户id", example = "1")
    private Long tenantId;

    /**
     * 先前的部门
     */
    @Schema(description = "先前的部门", example = "1")
    private Long preDeptId;

    /**
     * 审核人员
     */
    @Schema(description = "审核人员", example = "老王")
    private String shry;

    public SpAuditActionResultCreateDTO(String rybh, String lcbh, String shsm, AuditBusinessTypeEnum businessType, AllAuditActionStatusEnum status, String shry, Long tenantId, Long preDeptId) {
        super(new SpAuditDTO(rybh, lcbh, shsm), businessType, status);
        this.shry = shry;
        this.tenantId = tenantId;
        this.preDeptId = preDeptId;
    }

}
